<?php

$jige = 75;
$Js =85;
$Html =85;
$wybj =70;
$avg =($Js+$Html+$wybj)/3;


 /*echo "js= $Js<br/>";
 echo  "html= $Html<br/>"; 
 echo "网页布局=$wybj<br/>"; 
 echo "平均分的及格线=$jige<br/>";
 
 echo "你的平均分=$avg<br/>";
 echo "你的分数：";
  if ($avg>=$jige){
      echo "及格";
  } else{
      echo"不及格";
  }*/?>

<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
    js=<?php echo  $Js; ?><br/>
    html=<?php echo  $Html; ?><br/> 
    网页布局=<?php echo $wybj; ?><br/> 
    平均分的及格线=<?php echo $jige; ?><br/>
 
    你的平均分=<?php echo $avg?><br/>
    你的分数：<?php if ($avg>=$jige):?>

    <span style="color:green">及格</span>
    <?php else :?>
    <span style="color: red">不及格</span>
    <?php endif ;?>
 
    <?php if(true) {?>
    <p>及格</p>
    <?php }else if(true) { ?>
    <p>不及格</p>
     <?php } ?>
    

   <?php  if(true){
	echo "<p>及格</p>";
     }else {
	echo "<p>不及格</p>";
      }?>
 
    
    
</body>
</html>